package com.meizi.mall.common.status;

import com.meizi.core.tool.status.IStatus;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021/1/12 13:01
 */
//500+
public enum ProductStatus implements IStatus {
    IS_EXIST_RELATION(5000, "已经存在关联关系"),
    UPLOAD_ERROR(4001, "文件上传失败");

    private int code;
    private String msg;

    ProductStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return  code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
